package com.bing.bingPro.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 工单指标-业务类型-月份
 * @TableName t_order_index_busi_month
 */
@TableName(value ="t_order_index_busi_month")
@Data
public class TOrderIndexBusiMonth implements Serializable {
    /**
     * 日期
     */
    private String month;

    /**
     * 省份
     */
    private String provinceName;

    /**
     * 业务类型
     */
    private String busiType;

    /**
     * 装机工单完成量
     */
    private Integer installFnNum;

    /**
     * 移机工单完成量
     */
    private Integer moveFnNum;

    /**
     * 千兆宽带标识
     */
    private Integer kmFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TOrderIndexBusiMonth other = (TOrderIndexBusiMonth) that;
        return (this.getMonth() == null ? other.getMonth() == null : this.getMonth().equals(other.getMonth()))
            && (this.getProvinceName() == null ? other.getProvinceName() == null : this.getProvinceName().equals(other.getProvinceName()))
            && (this.getBusiType() == null ? other.getBusiType() == null : this.getBusiType().equals(other.getBusiType()))
            && (this.getInstallFnNum() == null ? other.getInstallFnNum() == null : this.getInstallFnNum().equals(other.getInstallFnNum()))
            && (this.getMoveFnNum() == null ? other.getMoveFnNum() == null : this.getMoveFnNum().equals(other.getMoveFnNum()))
            && (this.getKmFlag() == null ? other.getKmFlag() == null : this.getKmFlag().equals(other.getKmFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMonth() == null) ? 0 : getMonth().hashCode());
        result = prime * result + ((getProvinceName() == null) ? 0 : getProvinceName().hashCode());
        result = prime * result + ((getBusiType() == null) ? 0 : getBusiType().hashCode());
        result = prime * result + ((getInstallFnNum() == null) ? 0 : getInstallFnNum().hashCode());
        result = prime * result + ((getMoveFnNum() == null) ? 0 : getMoveFnNum().hashCode());
        result = prime * result + ((getKmFlag() == null) ? 0 : getKmFlag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", month=").append(month);
        sb.append(", provinceName=").append(provinceName);
        sb.append(", busiType=").append(busiType);
        sb.append(", installFnNum=").append(installFnNum);
        sb.append(", moveFnNum=").append(moveFnNum);
        sb.append(", kmFlag=").append(kmFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}